<?php
    include "../Common.php";
	define('JPGRAPH_PATH', '..'.DIRECTORY_SEPARATOR.'Jpgraph'.DIRECTORY_SEPARATOR);
	require_once (JPGRAPH_PATH.'jpgraph.php');
	require_once (JPGRAPH_PATH.'jpgraph_pie.php');
	require_once (JPGRAPH_PATH.'jpgraph_pie3d.php');

	
	
	$sql ="SELECT `IpAdds` FROM `ipadds` WHERE `IpAdds` = '127.0.0.1'";
	
	$queryObj = $Db->query($sql);
	
	while($result = $queryObj->fetch_assoc()){
		echo $result['IpAdds']."<hr />";
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	/*
	$data = array(40,60,21,33);
	 
	$graph = new PieGraph(300,200);
	$graph->SetShadow();
	 
	$graph->title->Set("A simple Pie plot");
	$graph->title->SetFont(FF_FONT1,FS_BOLD);
	 
	$p1 = new PiePlot3D($data);
	$p1->SetAngle(20);
	$p1->SetSize(0.5);
	$p1->SetCenter(0.45);
	$p1->SetLegends($gDateLocale->GetShortMonth());
	 
	$graph->Add($p1);
	$graph->Stroke();
	 

	*/

?>
